﻿<%@ Control Language="C#" %>
<script runat="server">
    private int cid = 0;
    private int pageNote = 1;
    private int top_size = 40;
    private string s_mode = "_ssss";
    private int lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Cid == 0)
            Cid = Utils.GetQueryString("cid", 0);
        Item_Lang = Utils.GetQueryString("lang", 1);

        Album album = new Album();
        Repeater_List.DataSource = album.Album_List(Cid, PageNote, Top_Size, Item_Lang, "home");
        Repeater_List.DataBind();
    }
    /// <summary>
    /// 属于栏目的ID
    /// </summary>
    public int Cid
    {
        get { return cid; }
        set { cid = value; }
    }
    /// <summary>
    /// 当前页
    /// </summary>
    public int PageNote
    {
        get { return pageNote; }
        set { pageNote = value; }
    }
    /// <summary>
    /// 每页的显示数量
    /// </summary>
    public int Top_Size
    {
        get { return top_size; }
        set { top_size = value; }
    }
    /// <summary>
    /// 显示图片名的后缀标签
    /// </summary>
    public string S_Mode
    {
        get { return s_mode; }
        set { s_mode = value; }
    }
    /// <summary>
    /// 显示语言
    /// </summary>
    public int Item_Lang
    {
        get { return lang; }
        set { lang = value; }
    }
</script>
<ul class="album_<%=Cid %>">
    <asp:Repeater runat="server" ID="Repeater_List">
        <ItemTemplate>
            <li data-typ="img" title="<%#Eval("Item_Title") %>" class="item li_<%#Eval("Item_Id") %>">
                <a href="Album-View.aspx?id=<%#Eval("Item_Id") %>">
                    <img alt="<%#Eval("Item_Title") %>" src="../DataFile/Album/<%#Eval("Create_Time","{0:yyyyMM/ddHHmmss}")%><%=S_Mode%>.<%#Eval("Item_fileExt")%>" />
                    <h4><%#Eval("Item_Title") %></h4>
                    <code><%#Eval("Item_Title") %></code>
                </a>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
